from django import template
from django.template.defaulttags import url as default_url
from mysites.comments.models import AreasInfo
import logging

register = template.Library()

@register.inclusion_tag('sidebar/areas.html')
def areas_list():
    areas = AreasInfo.objects.all()
    return {"areas":areas}
